package com.cn.coupon.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.DecimalFormat;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "优惠券数据统计")
public class Statistics {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "优惠券ID")
    private Integer coupon_id;

    @ApiModelProperty(value = "优惠券名字")
    private String name;

    @ApiModelProperty(value = "优惠券状态")
    private int state;

    @ApiModelProperty(value = "发放量")
    private Integer count;

    @ApiModelProperty(value = "领取量")
    private Integer took_count;

    @ApiModelProperty(value = "使用量")
    private Integer used_count;

    @ApiModelProperty(value = "失效的量")
    private Integer expired_count;

    @ApiModelProperty(value = "领取率")
    private float takeup_rate;

    @ApiModelProperty(value = "使用率")
    private float used_rate;

    @ApiModelProperty(value = "优惠总金额")
    private DecimalFormat discount_amount;

    @ApiModelProperty(value = "用券总成交额")
    private DecimalFormat used_amount;
}
